<?php

class Application_Model_DbTable_Pagoshistorial extends Zend_Db_Table_Abstract
{

    protected $_name = 'pagoshistorial';

	public function getHistorialFromIdEmpresa($idEmpresa) {
		$select  = $this->_db->select()
			->from($this->_name)->where('idempresa = ?', $idEmpresa);
			//->join('busquedascategorias','busquedascategorias.id = busquedas.idcategoria',array('nombre'))
			//->order('busquedas.id ASC');
		
		$result = $this->getAdapter()->fetchAll($select);

		return $result;
	}

}

